
  /*  getlist()
   function getlist(){
       $.ajax({
           url:'../lib/nav_top.json',
           dataType:'json',
           success:function(res){
               console.log(res)

               var str=""
               res.forEach(item => {
                   str += `<li>${item.name}</li>`
               })
               $('.nav-top')
                   .html(str)
                   .on({
                       mouseenter:()=>$('.nav-box').stop().slideDown(),
                       mouseleave:()=>$('.nav-box').stop().slideUp()
                   })
                   .children('li')
                   .on('mouseover',function(){
                       const index=$(this).index()
                       const list=res[index].list
                       var str=''
                       list.forEach(item=>{
                           str +=`
                           <li>
                           <div class="imgs">
                               <img src="${item.list_url}">
                           </div>
                           <div class="name">${item.list_name}</div>
                           <div class="price">${item.list_price}</div>
                           </li>
                           `
                       })
                       $('.nav-box>ul').html(str)
                   })
               $('.nav-box')
                    .on({
                        mouseover:function(){$(this).finish().show()},
                       mouseout:function(){$(this).finish().slideUp()}
                   })
           }

       })
   } */